Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 8 | ||
Bugs | 0 | Features | 0 |
1 | import test from 'ava' |
||
4 | test('isNumberLike', t => { |
||
5 | t.truthy(utils.isNumericIDLike('2')) |
||
6 | |||
7 | // Ignore numbers |
||
8 | t.falsy(utils.isNumericIDLike(1)) |
||
9 | t.falsy(utils.isNumericIDLike(1.2)) |
||
10 | // Ignore non-id |
||
11 | t.falsy(utils.isNumericIDLike('2.6')) |
||
12 | // Some sort of UUID that only has numbers (but should be string) |
||
13 | t.falsy(utils.isNumericIDLike('132-3534-23')) |
||
14 | }) |
||
15 |